package com.market2.model;

import java.sql.Date;

import javax.persistence.Entity;

import com.market2.utils.converter.annotation.Conversion;
import com.market2.utils.converter.impl.SwapConverter;

@Entity
@Conversion(SwapConverter.class)
public class Swap extends Contrat
{
	private static final long serialVersionUID = 1L;
	
	private Date startDate;
	private Date endDate;
	private String firstCounterparty;
	private String secondCounterparty;
	
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getFirstCounterparty() {
		return firstCounterparty;
	}
	public void setFirstCounterparty(String firstCounterparty) {
		this.firstCounterparty = firstCounterparty;
	}
	public String getSecondCounterparty() {
		return secondCounterparty;
	}
	public void setSecondCounterparty(String secondCounterparty) {
		this.secondCounterparty = secondCounterparty;
	}
}
